const AlipaySdk = require('alipay-sdk').default
const { APPID, GATEWAY, PUBLICKEY, PRIVATEKEY } = require('./config')

const alipaySdk = new AlipaySdk({
    appId:APPID, //
    signType:"RSA2", // 签名算法
    gateway:GATEWAY, //支付宝网关地址
    alipayPublicKey:PUBLICKEY, //支付宝公钥
    privateKey:PRIVATEKEY, //应用私钥
})

module.exports = alipaySdk